package com.czz.portal.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.czz.portal.entity.CourseConsult;
import com.czz.portal.mapper.CourseConsultMapper;
import com.czz.portal.query.ConsultQuery;
import com.czz.portal.service.CourseConsultService;
import com.czz.portal.vo.ConsultVo;
import com.czz.portal.vo.OrderConsultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: CourseConsultImpl
 * @Author Czz
 * @Date 2020/2/11
 * @Time 20:25
 **/
@Service
public class CourseConsultImpl extends ServiceImpl<CourseConsultMapper, CourseConsult> implements CourseConsultService {

    @Autowired
    CourseConsultMapper courseConsultMapper;

    @Override
    public List<ConsultVo> getConsultPageList(Page<ConsultVo> pageParam, ConsultQuery consultQuery) {
        return courseConsultMapper.getConsultVoPageList(pageParam,consultQuery);
    }

    @Override
    public List<OrderConsultVo> getOrderConsultPageList(Page<OrderConsultVo> pageParam,String userId) {
        return courseConsultMapper.getOrderConsultPageList(pageParam,userId);
    }
}
